package com.example.administrator.ygddriver.into;

import android.content.Intent;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.RelativeLayout;

import com.example.administrator.ygddriver.R;
import com.example.administrator.ygddriver.base.BaseActivity;
import com.example.administrator.ygddriver.into.login.LogInActivity;
import com.example.administrator.ygddriver.into.register.RegisterActivity;

/**
 * 登录注册界面
 */
public class IntoActivity extends BaseActivity implements View.OnClickListener {
    private RelativeLayout mIntoCardView, mRegisterCardView;

    @Override
    public int initLayout() {
        return R.layout.activity_into;
    }

    @Override
    public void initView() {
        mIntoCardView = findViewById(R.id.activity_into_rl_into);
        mRegisterCardView = findViewById(R.id.activity_into_rl_register);
        mIntoCardView.setOnClickListener(this);
        mRegisterCardView.setOnClickListener(this);
    }

    @Override
    public void initDate() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.activity_into_rl_into:
                Intent intent = new Intent(this, RegisterActivity.class);
                startActivity(intent);
                break;
            case R.id.activity_into_rl_register:
                Intent intent1 = new Intent(this, LogInActivity.class);
                startActivity(intent1);
                break;
        }
    }
}
